import { Controller, Get, Post, Body } from '@nestjs/common';
import { UserService } from './user.service';

@Controller()
export class UserController {
  constructor(private readonly userService: UserService) {}

  @Get('bbb')
  getHello(): string {
    return 'bbb';
  }

  @Post('create')
  async create(@Body() data: any) {
    return await this.userService.create(data);
  }
}
